package com.work.straighttalk.adapter;

import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.view.ViewGroup;
import android.widget.ImageView;

import com.work.straighttalk.R;

import butterknife.Bind;

/**
 * Created by dllo on 16/3/18.
 */
public class EditBackPhotoViewHolder extends BaseViewHolder<String> {
    @Bind(R.id.item_photo)
    ImageView itemPhoto;


    public EditBackPhotoViewHolder(Context context, ViewGroup root) {
        super(context, root, R.layout.item_edit_back_photo);
    }

    @Override
    public void bindData(String s) {
        Bitmap bitmap = BitmapFactory.decodeFile(s);
        itemPhoto.setImageBitmap(bitmap);
    }
}
